package com.example.springboot_02_jsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;


@Controller
public class WelcomeController {
    @GetMapping("/test1")
    public String welcome(Model model) {
        model.addAttribute("time",new Date());
        model.addAttribute("message", "hello world");
        return "hello";
    }
}
